home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 26
/
Tiger_Disk_026_19xx_Tiger-Crew-Disk_de_Side_A.d64
/
joystick-test
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
49 lines
1 poke788,52:poke53280,0:poke53281,0:printchr$(147)
2 joy=56320:a=2:j$="neutral":vl$="00":b$="aus"
5 print" joystick tester / michael smith 1989 [146]"
12 print" [209] ":print
13 print" [209] [209] "
15 print"[209] [209] [209] "
16 print" "
17 print" [209] [209] "
18 print" [209] "
20 print"joystick port :";a"[146]"
21 print"joystick richtung :";j$"[146]"
22 print"value:";vl$"[146]"
23 print"feuer - taste :";b$;"[146]"
24 print" "
25 print" drueck space fuer portwechsel [146]"
50 fork=0to10
51 gosub100
55 geta$:ifa$=""then56
56 ifa$=" "thengoto150
67 ifjv=0then98
68 ifjv=1thenj$="hoch ":vl$="01":goto507
69 ifjv=2thenj$="runter ":vl$="02":goto506
70 ifjv=4thenj$="links ":vl$="04":goto505
71 ifjv=5thenj$="hoch/links ":vl$="05":goto504
72 ifjv=6thenj$="runter/li. ":vl$="06":goto503
73 ifjv=8thenj$="rechts ":vl$="08":goto502
74 ifjv=9thenj$="hoch/rechts":vl$="09":goto501
95 ifjv=10thenj$="runter/re. ":vl$="10":goto500
98 iffr=16thenb$="aus":j$="neutral ":vl$="00":goto510
99 b$="an ":goto23
100 jv=peek(joy)
110 fr=jvand16
120 jv=15-(jvand15)
130 return
140 end
150 ifa=2thenjoy=56321:a=1:goto12
155 ifa=1thenjoy=56320:a=2:goto12
160 end
500 print"[153] [209][150] [209] ":goto12
501 print" [209][150] [209] ":goto12
502 print"[209] [209][150] [209] ":goto12
503 print"[150] [209] [209] ":goto12
504 print"[150] [209] [209] ":goto12
505 print"[150][209] [209] [209] ":goto12
506 print"[150] [209] ":goto12
507 print"[150] [209] ":goto12
510 print"[209] [150] [209] [209] ":goto12
520 end